<template>
  <div>
    <table>
      <tr v-for="(item,index) in data" :key="index">
        <!-- <td>{{ item.name }}</td>
        <td>{{ item.age }}</td>
        <td>{{ item.gender }}</td> -->
        <slot :row="item" :index="index" />
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Array,
      required: true
    }
  }
}
</script>

<style>

</style>
